package com.bdqn.service;

import com.bdqn.mapper.SysUserMapper;
import com.bdqn.pojo.SysUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysUserServiceImpl implements SysUserService{
    @Resource
    private SysUserMapper sysUserMapper;

    @Override
    public int getCount() {
        return sysUserMapper.getCount();
    }

    @Override
    public List<SysUser> List(int pageIndex, int pageSize, String queryRealName, Integer queryRoleId) {
        return sysUserMapper.List(pageIndex,pageSize,queryRealName,queryRoleId);
    }

    @Override
    public SysUser login(String account, String password) {
        return sysUserMapper.getByAccounPassword(account,password);
    }
}
